package com.atguigu.gulimail.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimail.auth.vo.GiteeAccessToken;
import com.atguigu.gulimail.auth.vo.UserLoginVo;
import com.atguigu.gulimail.auth.vo.UserRegistryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimail-member")
public interface MemberFeignService {
    @PostMapping("/member/member/registry")
    R registry(@RequestBody UserRegistryVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth/login")
    R oauthLogin(@RequestBody GiteeAccessToken giteeAccessToken) throws Exception;
}
